<h1><?php echo $form['msgbox']['prompt_title'];?></h1>
<ol>
    <?php
    foreach((array)$form['msgbox']['msg_list'] as $val) {
        echo '<li>'.$val.'</li>';
    }
    ?>
</ol>
<?php
    foreach((array)$form['msgbox']['msg_btn'] as $val) {
        if (isset($form['msgbox']['ajax']) && !empty($form['msgbox']['ajax'])) {
            echo '<div class="ui-cbtn"><a ajax="'.$form['msgbox']['ajax'].'" href="#" class="logout" rel="external" data-role="button">'.$val['value'].'</a></div>'; 
        }
        else {
            echo '<div class="ui-cbtn"><a href="'.$val['link'].'" rel="external" data-role="button">'.$val['value'].'</a></div>'; 
        }
    }
?>
